<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>文章编辑</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/admin/admincp.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/kindeditor/kindeditor.js"></script>
	<script type="text/javascript">
	function html_encode(str)   
	{   
	  var s = "";   
	  if (str.length == 0) return "";   
	  s = str.replace(/&/g, "&amp;");   
	  s = s.replace(/</g, "&lt;");   
	  s = s.replace(/>/g, "&gt;");   
	  //s = s.replace(/ /g, "&nbsp;");   
	  s = s.replace(/\'/g, "&#39;");   
	  s = s.replace(/\"/g, "&quot;");   
	  //s = s.replace(/\n/g, "<br>");   
	  return s;   
	} 

	KE.show({
					id : 'content',
					resizeMode : '1',
					imageUploadJson:'<!--{:U("Admin/upload")}-->'
				    
				});
	</script>
</head>
<body>
<div class="mask">
	<div id="cpcontainer" class="container">
		<div class="itemtitle"><h3>文章编辑</h3></div>
		<form action="<!--{:U('Public/editArticle')}-->" method="post" name="form1">
		<input type="hidden" name="id" value="<!--{$result['id']}-->" />
			<table class="categoryadd">
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">文章标题：</font></td>
					<td class="bline"><input type="text" class="txt l_text" name="subject" value="<!--{$result.subject}-->"></td>
				</tr>
				
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">所属分类：</font></td>
					<td class="bline">
						<select name="cid">
						<volist name="categoryData" id="vo">
							<option value="<!--{$vo['id']}-->" <eq name="result['cid']" value="$vo['id']">selected="selected"</eq>><!--{$vo['c_name']}--></option>
						</volist>
						
						</select>
					
					</td>
				</tr>
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">关键词：</font></td>
					<td class="bline"><input type="text" class="txt  l_text" name="keywords" value="<!--{$result.keywords}-->"></td>
				</tr>
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">简介：</font></td>
					<td class="bline"><input type="text" class="txt l_text" name="description" value="<!--{$result.description}-->"></td>
				</tr>
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">内容：</font></td>
					<td class="bline" >
						<textarea name="content" id="content" cols="150" rows="30"><!--{$result.content}--></textarea>
					</td>
				</tr>
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">置顶：</font></td>
					<td class="bline">
						<select name="is_top">
						
							<option value="0" <eq name="result['is_top']" value="0">selected="selected"</eq>>不置顶</option>
							<option value="1" <eq name="result['is_top']" value="1">selected="selected"</eq>>置顶</option>
						
						</select>
					
					</td>
				</tr>
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"><font color="red">浏览数：</font></td>
					<td class="bline"><input type="text" class="txt" name="click_count" value='<!--{$result.click_count}-->'></td>
				</tr>
				
				<tr>
					<td height="26" style="padding-left:10px;width:100px;border-right: 1px dotted #DEEFFB;" class="bline"></td>
					<td class="bline" >
						<input type="submit" value="确定" class="btn" />
					</td>
				</tr>
			
			</table>
		</form>
	</div>
</div>
</body>
</html>